package cn.xrfzh.biz.user.controller;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Component
public class PasswordEncoderTest {

    @Resource
    private PasswordEncoder passwordEncoder;

    @PostConstruct
    public void test() {
        String password = passwordEncoder.encode("admin123456");
        System.out.println(password);
    }

}
